package vo;

import java.io.*;
import java.util.*;

@SuppressWarnings("serial")
public class UnitListVO implements Serializable {
	
	private ArrayList<UnitVO> list;
	
//	public UnitListVO() {
//		list = new ArrayList<UnitVO>();
//	}
	
	private void init() {
		if(this.list == null)
			this.list = new ArrayList<UnitVO>();
	}
	
	public ArrayList<UnitVO> getList() {
		init();
		return this.list;
	}
	
	public void setList(ArrayList<UnitVO> list) {
		this.list = list;
	}
	
	public void addList(ArrayList<UnitVO> list) {
		init();
		for(UnitVO unit : list) {
			this.list.add(unit);
		}
	}
	
	public void add(UnitVO unit) {
		init();
		this.list.add(unit);
		
	}
	
}
